package com.xmtlxx.wms.domain.bo;

import com.xmtlxx.common.core.domain.BaseEntity;
import com.xmtlxx.common.core.validate.AddGroup;
import com.xmtlxx.common.core.validate.EditGroup;
import com.xmtlxx.oms.domain.vo.BoxVo;
import com.xmtlxx.wms.domain.vo.PutDtlVo;
import com.xmtlxx.system.domain.SysOss;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;
import java.util.List;

/**
 * 上架任务业务对象 t_put_task
 *
 * @author xmtlxx
 * @date 2022-08-15
 */

@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel("上架任务业务对象")
public class PutTaskBo extends BaseEntity {

    /**
     * 上架ID
     */
    @ApiModelProperty(value = "上架ID")
    private String id;

    /**
     * 入库单ID
     */
    @ApiModelProperty(value = "入库单ID", required = true)
    @NotBlank(message = "入库单ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private String wid;

    /**
     * 部门ID
     */
    @ApiModelProperty(value = "部门ID", required = true)
    @NotNull(message = "部门ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long deptId;

    /**
     * 任务编号
     */
    @ApiModelProperty(value = "任务编号", required = true)
    @NotBlank(message = "任务编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String taskNo;

    /**
     * 状态
     */
    @ApiModelProperty(value = "状态", required = true)
    @NotBlank(message = "状态不能为空", groups = { AddGroup.class, EditGroup.class })
    private String status;

    /**
     * 描述
     */
    @ApiModelProperty(value = "描述")
    private String memo;

    /**
     * 上架员
     */
    @ApiModelProperty(value = "上架员")
    private Long operator;

    /**
     * 图片附件
     */
    @ApiModelProperty(value = "图片附件")
    private String pics;

    /**
     * 完成时间
     */
    @ApiModelProperty(value = "完成时间")
    private Date finishTime;

    /**
     * 删除标识
     */
    @ApiModelProperty(value = "删除标识")
    private String delFlag;

    /**
     * 数量
     */
    @ApiModelProperty(value = "数量")
    private Long nums;

    @ApiModelProperty(value = "仓库ID")
    private String storeId;

    @ApiModelProperty(value = "上架明细")
    private List<PutDtlVo> items;

    @ApiModelProperty(value = "图片附件")
    private List<SysOss> oss;


    /**
     * 库区
     */
    @ApiModelProperty(value = "库区")
    private String areaId;

    private String wno;

    private Long userId;

    private String taskId;

    private List<BoxVo> boxList;

    /**
     * 搜索条件
     */
    private String pno;
    private String pname;
    @ApiModelProperty("物品关键字")
    private String proKey;

}
